package com.qingcheng.service.order;
import com.qingcheng.entity.PageResult;
import com.qingcheng.pojo.order.Order;
import com.qingcheng.pojo.order.OrderOrderItem;
import com.qingcheng.pojo.order.SplitOrder;

import java.util.*;

/**
 * order业务逻辑层
 */
public interface OrderService {


    public List<Order> findAll();


    public PageResult<Order> findPage(int page, int size);


    public List<Order> findList(Map<String,Object> searchMap);


    public PageResult<Order> findPage(Map<String,Object> searchMap,int page, int size);


    public Order findById(String id);

    public void add(Order order);


    public void update(Order order);


    public void delete(String id);

    public OrderOrderItem findOrderOrderItemByid(String id);

    public List<Order> findOrdersStatus(String id);

    public void updateOrdersStatus(List<Order> orderList);

    public void orderTimeOutLogic();

    public void merge(String one, String two);

    public void splitOrder(String id, List<SplitOrder> splitOrderList);

    public Map<String,Object> addOrder(Order order);

    public void updatePayStatus(String orderId,String transactionId);
}
